<template>
<div>
  <p>BindChildB</p>
  <p>boo: {{ boo }}</p>
  <p>childCom2: {{ $attrs }}</p>
  开始引用C
  <bind-child-c v-bind="$attrs" ></bind-child-c>
</div>
</template>

<script>
  import BindChildC from './BindChildC'
  export default {
    name: 'BindChildB',
    components:{
      BindChildC
    },
    inheritAttrs: false,
    props: {
      boo: String
    },
    created() {
      console.log(this.$attrs); // {"coo": "CSS", "doo": "Vue", "title": "前端工匠" }
    }
  }
</script>

<style scoped>

</style>
